package com.dragon.modules.yuegou.model.product;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 商品收藏类
 */
public class ProductFavorite implements Serializable{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品标题")
    private String title;

    @ApiModelProperty("拼团或助力id")
    private String id;

    @ApiModelProperty("商品id")
    private String spuId;

    @ApiModelProperty("拼团或助力，0-助力，1-拼团")
    private Integer grouponOrHelp;

    @ApiModelProperty("商品logo")
    private String mainImg;

    @ApiModelProperty("商品原价")
    private BigDecimal originalPrice;

    @ApiModelProperty("商品价格")
    private BigDecimal price;

    @ApiModelProperty("是否失效")
    private boolean isExpire;

    public ProductFavorite() {
    }


    public ProductFavorite(String title, String id, String spuId, Integer grouponOrHelp, String mainImg, BigDecimal originalPrice, BigDecimal price, boolean isExpire) {
        this.title = title;
        this.id = id;
        this.spuId = spuId;
        this.grouponOrHelp = grouponOrHelp;
        this.mainImg = mainImg;
        this.originalPrice = originalPrice;
        this.price = price;
        this.isExpire = isExpire;
    }

    public boolean isExpire() {
        return isExpire;
    }

    public void setExpire(boolean expire) {
        isExpire = expire;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSpuId() {
        return spuId;
    }

    public void setSpuId(String spuId) {
        this.spuId = spuId;
    }

    public Integer getGrouponOrHelp() {
        return grouponOrHelp;
    }

    public void setGrouponOrHelp(Integer grouponOrHelp) {
        this.grouponOrHelp = grouponOrHelp;
    }

    public String getMainImg() {
        return mainImg;
    }

    public void setMainImg(String mainImg) {
        this.mainImg = mainImg;
    }

    public BigDecimal getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(BigDecimal originalPrice) {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
}
